package com.ruoyi.yuanliao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.yuanliao.domain.TraceTransport;
import com.ruoyi.yuanliao.service.TraceTransportService;
import com.ruoyi.yuanliao.mapper.TraceTransportMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 86182
* @description 针对表【trace_transport】的数据库操作Service实现
* @createDate 2023-05-21 20:44:34
*/
@Service
public class TraceTransportServiceImpl extends ServiceImpl<TraceTransportMapper, TraceTransport>
    implements TraceTransportService{

    @Override
    public List<TraceTransport> listCrops(String deptId) {
        return this.baseMapper.listCrops(deptId);
    }

    @Override
    public int changeInToOut(String cropsId) {
        return this.baseMapper.changeInToOut(cropsId);
    }

    @Override
    public int addTransport(TraceTransport traceTransport) {
        return this.baseMapper.insertSelective(traceTransport);
    }
}




